$(function() {
	var myTrigger = "";
	if($(window).width() < 768) {
		myTrigger = "click";

	} else {
		myTrigger = "hover";
	}
	$('#email').popover({
		animation: true,
		html: true,
		container: ".foot_cont",
		trigger: myTrigger,
		content: "<div class='foot_email'><p>商务合作<br><span class='glyphicon glyphicon-envelope'></span><br>BD@layabox.com</p></div>",
	})
	$('#wechat').popover({
		animation: true,
		html: true,
		container: ".foot_cont",
		trigger: myTrigger,
		content: "<div class='foot_wechat'><img src='img/weixin.jpg'></div>",
	})
	$('#qq').popover({
		animation: true,
		html: true,
		container: ".foot_cont",
		trigger: myTrigger,
		content: "<div class='foot_qq'><img src='img/qqpop.jpg'></div>",
	})
})